package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the DERE_MINE database table.
 * 
 */
@Entity
@Table(name="DERE_MINE")
public class DereMine implements Serializable {
	private static final long serialVersionUID = 1L;
	private DereMinePK id;
	private String agntSync;
	private String estado;
	private String noDere;
	private Date tsUltSync;
	private Partida partida;

    public DereMine() {
    }


	@EmbeddedId
	public DereMinePK getId() {
		return this.id;
	}

	public void setId(DereMinePK id) {
		this.id = id;
	}
	

	@Column(name="AGNT_SYNC", length=4)
	public String getAgntSync() {
		return this.agntSync;
	}

	public void setAgntSync(String agntSync) {
		this.agntSync = agntSync;
	}


	@Column(nullable=false, length=1)
	public String getEstado() {
		return this.estado;
	}

	public void setEstado(String estado) {
		this.estado = estado;
	}


	@Column(name="NO_DERE", nullable=false, length=150)
	public String getNoDere() {
		return this.noDere;
	}

	public void setNoDere(String noDere) {
		this.noDere = noDere;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TS_ULT_SYNC")
	public Date getTsUltSync() {
		return this.tsUltSync;
	}

	public void setTsUltSync(Date tsUltSync) {
		this.tsUltSync = tsUltSync;
	}


	//bi-directional many-to-one association to Partida
    @ManyToOne
	@JoinColumn(name="REFNUM_PART", nullable=false, insertable=false, updatable=false)
	public Partida getPartida() {
		return this.partida;
	}

	public void setPartida(Partida partida) {
		this.partida = partida;
	}
	
}